:root {
    --primary-color: #1cad80;
    --primary-color-hover: #18966f;
    --secondary-color: #f0f8f5;
    --text-color: #333;
    --light-text: #666;
    --border-color: #ddd;
    --background-color: #f5f7fa;
    --background-light: #f8f9fa;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --success: #00c853;
    --warning: #ffab00;
    --error: #f44336;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    margin: 0 0 0.5rem;
    color: #000000;
    font-size: 32px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

header h2 {
    font-size: 24px;
    color: #666;
    margin-bottom: 15px;
    font-weight: bold;
}

.version-tag {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.version-tag span {
    display: inline-block;
    padding: 3px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* 小节标题样式 */
.section-title {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-number {
    background-color: var(--primary-color);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
}

/* 小节图标样式 */
.section-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 20px;
    vertical-align: middle;
}

/* 子小节样式 */
.sub-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.sub-section:last-child {
    border-bottom: none;
}

/* 修改子小节h3以适应图标 */
.sub-section h3 {
    font-size: 18px;
    color: #1a8870;
    margin-bottom: 18px;
    font-weight: 600;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
    line-height: 1.4;
    display: flex;
    align-items: center;
}

/* 移除子标题前的点号，因为现在使用图标 */
.sub-section h3::before {
    content: none;
}

/* 主要内容区域 */
section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(28, 173, 128, 0.1);
}

.form-group-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 文件上传样式 */
.file-upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.file-upload-box:hover {
    border-color: var(--primary-color);
    background-color: #f0f8f5;
}

.file-upload-box input[type="file"] {
    width: 100%;
    max-width: 100%;
    cursor: pointer;
}

/* 图片预览 */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 粘贴区域提示样式 */
.paste-hint {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
    font-style: italic;
}

/* 图片删除按钮样式 */
.delete-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(244, 67, 54, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.preview-item:hover .delete-image {
    opacity: 1;
}

.delete-image:hover {
    background-color: rgba(244, 67, 54, 1);
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    padding: 12px 15px;
    background-color: #e8f7e8; /* 更柔和的绿色背景 */
    border-bottom: 1px solid #c8e6c9; /* 更明显的分隔线 */
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2e7d32; /* 更深的文字颜色 */
}

.card-header input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1); /* 稍微放大复选框 */
}

.card-header label {
    cursor: pointer;
    flex: 1;
}

.card-body {
    padding: 18px;
    background-color: white;
    border-top: none;
}

/* 切换开关样式 */
.toggle-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-label {
    font-weight: 500;
    margin-right: 10px;
}

.toggle-switch {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.toggle-switch input[type="radio"] {
    display: none;
}

.toggle-switch label {
    padding: 6px 12px;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s;
}

.toggle-switch input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: white;
}

/* 成本显示样式 */
.cost-display {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-weight: 500;
    color: var(--primary-color);
}

.sub-section-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    font-weight: 500;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}

.total-label {
    margin-right: 10px;
}

.total-value {
    color: var(--primary-color);
    font-size: 16px;
}

.section-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 20px;
    font-weight: 600;
    font-size: 18px;
    border-top: 2px solid var(--primary-color);
    padding-top: 15px;
}

/* 成本汇总区域 */
.cost-summary {
    margin: 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.summary-row {
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    background-color: var(--secondary-color);
    font-weight: 600;
    font-size: 18px;
}

.summary-label {
    flex: 1;
}

.summary-value {
    min-width: 100px;
    text-align: right;
    color: var(--primary-color);
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-button:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.primary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.secondary-button {
    background-color: #f5f5f5;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-button:hover {
    background-color: #e9e9e9;
}

.button-icon {
    font-size: 18px;
}

/* 成本明细表格 */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-button {
    padding: 8px 15px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    color: var(--light-text);
}

.tab-button.active {
    color: var(--primary-color);
    font-weight: 500;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.detail-table th,
.detail-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.detail-table th {
    background-color: var(--secondary-color);
    font-weight: 500;
}

.detail-table tr:last-child td {
    border-bottom: none;
}

.detail-table tr:hover td {
    background-color: var(--background-light);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .form-group-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        width: 95%;
        padding: 1rem 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .primary-button, .secondary-button {
        width: 100%;
    }
} 

/* 铜价和加工费相关样式 */
.copper-price-reference {
    grid-column: 1 / -1;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f5f9ff;
    border-radius: 6px;
    border-left: 4px solid #4a90e2;
}

.copper-price-reference a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.copper-price-reference a:hover {
    text-decoration: underline;
}

.processing-fee-reference {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f5ff;
    border-radius: 6px;
    border-left: 4px solid #8e44ad;
}

.processing-fee-reference h4 {
    color: #8e44ad;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
}

.processing-fee-table-container {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.processing-fee-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.processing-fee-table th {
    background-color: #f0f0f0;
    padding: 8px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #ddd;
}

.processing-fee-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
}

.processing-fee-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.processing-fee-table tr:hover {
    background-color: #f0f0f0;
}

.table-note {
    font-size: 12px;
    color: #777;
    font-style: italic;
    margin-top: 5px;
}

/* 按钮样式优化 */
#calculateHighVoltageWirePrice,
#calculateLowVoltageWirePrice,
#manualHighVoltageWirePrice,
#manualLowVoltageWirePrice {
    padding: 6px 10px;
    font-size: 13px;
    margin-top: 22px;  /* 对齐输入框 */
}

#calculateHighVoltageWirePrice,
#calculateLowVoltageWirePrice {
    background-color: #4a90e2;
    margin-right: 5px;
}

#manualHighVoltageWirePrice,
#manualLowVoltageWirePrice {
    background-color: #8e44ad;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .processing-fee-table-container {
        max-height: 250px;
    }
}

/* 铜线计算按钮样式 */
.wire-calc-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
    margin-top: 25px; /* 对齐输入框 */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wire-calc-button:before {
    content: "➕";
    margin-right: 5px;
    font-size: 14px;
}

.wire-calc-button:hover {
    background-color: #3a7bc8;
    box-shadow: 0 3px 6px rgba(74, 144, 226, 0.4);
    transform: translateY(-1px);
}

.wire-calc-button:active {
    background-color: #3373bd;
    box-shadow: 0 1px 3px rgba(74, 144, 226, 0.3);
    transform: translateY(0);
}

.wire-calc-button:disabled {
    background-color: #a5c6f1;
    cursor: not-allowed;
    box-shadow: none;
}

/* 铜价链接按钮样式 */
.copper-price-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    margin-top: 25px;
    width: 100%;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.3);
}

.copper-price-link:hover {
    background-color: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(74, 144, 226, 0.4);
}

.link-icon {
    margin-right: 4px;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .processing-fee-table-container {
        max-height: 250px;
    }
}

/* 运输价格表样式 */
.shipping-fee-reference {
    margin: 15px 0;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shipping-fee-reference h4 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}

.shipping-fee-table-container {
    max-height: 250px;
    overflow-y: auto;
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 4px;
}

.shipping-fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.shipping-fee-table th, 
.shipping-fee-table td {
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #eee;
}

.shipping-fee-table th {
    background-color: #f3f3f3;
    position: sticky;
    top: 0;
    z-index: 10;
}

.shipping-fee-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-note {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* 运输计算结果样式 */
.shipping-result {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background-color: #f5f8ff;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
}

.result-item {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.result-label {
    font-weight: 600;
    margin-right: 8px;
    color: #555;
}

#totalWeightDisplay,
#shippingUnitPriceDisplay,
#totalShippingFeeDisplay,
#perProductShippingFeeDisplay {
    font-weight: 600;
    color: #333;
    padding: 2px 6px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .shipping-result {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-item {
        width: 100%;
    }
    
    .shipping-fee-table th, 
    .shipping-fee-table td {
        padding: 6px 8px;
        font-size: 13px;
    }
} 